package com.yike.user.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 平台数据总览信息
 *
 * @author Sakura
 * @since 2024-10-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "平台数据总览信息")
public class PlatformDataVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("实收金额")
    private BigDecimal actualAmount = BigDecimal.ZERO;

    @ApiModelProperty("订单量")
    private Integer orderNumber = 0;

    @ApiModelProperty("客单均价")
    private BigDecimal orderAverageAmount = BigDecimal.ZERO;

    @ApiModelProperty("退款金额")
    private BigDecimal refundAmount = BigDecimal.ZERO;

    @ApiModelProperty("分润金额")
    private BigDecimal commissionAmount = BigDecimal.ZERO;

    @ApiModelProperty("代理商数量")
    private Integer agentNumber = 0;

    @ApiModelProperty("新增代理商数量")
    private Integer addAgentNumber = 0;

    @ApiModelProperty("店铺数量")
    private Integer shopNumber = 0;

    @ApiModelProperty("新增店铺数量")
    private Integer addShopNumber = 0;

    @ApiModelProperty("用户数量")
    private Integer userNumber = 0;

    @ApiModelProperty("新增用户数量")
    private Integer addUserNumber = 0;

    public void setActualAmount(BigDecimal actualAmount) {
        if (actualAmount == null) {
            actualAmount = BigDecimal.ZERO;
        }
        this.actualAmount = actualAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        if (refundAmount == null) {
            refundAmount = BigDecimal.ZERO;
        }
        this.refundAmount = refundAmount;
    }

    public void setCommissionAmount(BigDecimal commissionAmount) {
        if (commissionAmount == null) {
            commissionAmount = BigDecimal.ZERO;
        }
        this.commissionAmount = commissionAmount;
    }



}
